package stu.wingsmaker.wooohoo.view.activity;

import stu.wingsmaker.wooohoo.view.fragment.MenuListFragment;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.view.View;

import com.actionbarsherlock.app.SherlockFragmentActivity;
import com.example.woooohooooo.R;
import com.jeremyfeinstein.slidingmenu.lib.SlidingMenu;

public class ArtistActivity extends SherlockFragmentActivity {
	FragmentManager fragmentManager;
	FragmentTransaction fragmentTransaction;
	//FragmentTransaction ft;
	//Fragment fragment;
	MenuListFragment mlf = new MenuListFragment();
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		getSupportActionBar();
		setContentView(R.layout.activity_artist);
		SlidingMenu menu = new SlidingMenu(this);
        menu.setMode(SlidingMenu.LEFT);
        menu.setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN);
        menu.setShadowWidthRes(R.dimen.shadow_width);
        menu.setShadowDrawable(R.drawable.ic_launcher);
        menu.setBehindOffsetRes(R.dimen.slidingmenu_offset);
        menu.setFadeDegree(0.35f);
        menu.attachToActivity(this, SlidingMenu.SLIDING_WINDOW);
        menu.setMenu(R.layout.slide_menu);
        fragmentManager = getSupportFragmentManager();
        fragmentTransaction = fragmentManager.beginTransaction();
        fragmentTransaction.show(mlf);
        fragmentTransaction.commit();
	}
	
	public void mOnClick(View v) {
		switch (v.getId()) {
		case R.id.image1: case R.id.image4:
			Intent i = new Intent(ArtistActivity.this,MonniActivity.class);
			startActivity(i);
			break;
		case R.id.image2: case R.id.image5:
			Intent j = new Intent(ArtistActivity.this,DickpunksActivity.class);
			startActivity(j);
			break;			
		case R.id.image3: case R.id.image6:
			Intent k = new Intent(ArtistActivity.this,UrbanActivity.class);
			startActivity(k);
			break;
		}
	}


}
